package com.sxg.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultCodeEnum {

    //登录失效
    LOGIN_INVALID(10001, "登录失效"),

    //订单不存在或状态异常
    ORDER_NOT_EXIST(20002, "订单不存在或状态异常"),

    //商品不存在
    GOODS_NOT_EXIST(30003, "商品不存在"),
    //商品库存不足
    GOODS_STOCK_NOT_ENOUGH(30004, "商品库存不足"),

    //地址不存在
    ADDRESS_NOT_EXIST(40001, "地址不存在"),


    ;


    private final int code;

    private final String message;

}
